package org.ioc.com.springdisposition.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/res")
public class HelloController {

    @Value("${spring.application.name}")
    private String name;
    @RequestMapping("/propername")
    public String name(){
        return "name="+name;
    }

}
